all: ts_read ts_read_mt

CROSS_COMPILE ?= arm-linux-gnueabihf-

CC = $(CROSS_COMPILE)gcc

CFLAGS = -Wall
INCLUDESDIR = -I /home/user/linux/tool/tslib/include 
LIBSDIR = -L /home/user/linux/tool/tslib/lib
LIBS = -lts


ts_read: ts_read.c
	$(CC) $(CFLAGS) $(INCLUDESDIR) $(LIBSDIR) $(LIBS) -o $@ $^

ts_read_mt: ts_read_mt.c
	$(CC) $(CFLAGS) $(INCLUDESDIR) $(LIBSDIR) $(LIBS) -o $@ $^

.PHONY: clean

clean:
	rm -rf *.o ts_read ts_read_mt